home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / newgrp.z / newgrp
Text File  |  1998-10-20  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. NNNNEEEEWWWWGGGGRRRRPPPP((((1111))))                                                            NNNNEEEEWWWWGGGGRRRRPPPP((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      newgrp - log in to a new group
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      nnnneeeewwwwggggrrrrpppp [----] [ group ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _n_e_w_g_r_p changes a user's group identification.  The user remains logged in
  16.      and the current directory is unchanged, but calculations of access
  17.      permissions to files are performed with respect to the new real and
  18.      effective group IDs.  The user is always given a new shell, replacing the
  19.      current shell, by _n_e_w_g_r_p, regardless of whether it terminated
  20.      successfully or due to an error condition (i.e., unknown group).
  21.  
  22.      Exported variables retain their values after invoking _n_e_w_g_r_p; however,
  23.      all unexported variables are either reset to their default value or set
  24.      to null.  System variables (such as PS1, PS2, PATH, MAIL, and HOME),
  25.      unless exported by the system or explicitly exported by the user, are
  26.      reset to default values.  For example, a user has a primary prompt string
  27.      (PS1) other than $$$$ (default) and has not exported PS1.  After an
  28.      invocation of _n_e_w_g_r_p , successful or not, their PS1 will now be set to
  29.      the default prompt string $$$$.  Note that the shell command _e_x_p_o_r_t (see
  30.      _s_h(1)) is the method to export variables so that they retain their
  31.      assigned value when invoking new shells.
  32.  
  33.      With no arguments, _n_e_w_g_r_p changes the group identification back to the
  34.      group specified in the user's password file entry.  This is a way to exit
  35.      the effect of an earlier _n_e_w_g_r_p command.
  36.  
  37.      If the first argument to _n_e_w_g_r_p is a ----, the environment is changed to
  38.      what would be expected if the user actually logged in again as a member
  39.      of the new group.
  40.  
  41.      A password is not demanded if any of the following are true:
  42.  
  43.           the caller is superuser,
  44.  
  45.           the caller's group id (from ////eeeettttcccc////ppppaaaasssssssswwwwdddd) matches the group's id, or
  46.  
  47.           the caller is a member of the group (i.e. listed in the fourth field
  48.           of the group entry in ////eeeettttcccc////ggggrrrroooouuuupppp).
  49.  
  50.      If none of the above conditions are met and the group has a password, the
  51.      user is asked for it.  If the group does not have a password, the
  52.      requested group-change is denied.
  53.  
  54. FFFFIIIILLLLEEEESSSS
  55.      /etc/group          system's group file
  56.      /etc/passwd         system's password file
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NNNNEEEEWWWWGGGGRRRRPPPP((((1111))))                                                            NNNNEEEEWWWWGGGGRRRRPPPP((((1111))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      login(1), multgrps(1), id(1), groups(1), group(4), passwd(4), environ(5)
  76.  
  77. BBBBUUUUGGGGSSSS
  78.      There is no convenient way to enter a password into ////eeeettttcccc////ggggrrrroooouuuupppp.  Use of
  79.      group passwords is not encouraged, because, by their very nature, they
  80.      encourage poor security practices.  Group passwords may disappear in the
  81.      future.
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.